package demo2;

import demo1.Base;

class A extends Base{

}

public class Derived extends Base {
    public static void main(String[] args) {
        Derived derived = new Derived();
        System.out.println(derived.val);

        A a = new A();
        // System.out.println(a.val);
    }
}
